package udp;

import java.net.DatagramPacket;
import java.net.DatagramSocket;

public class UdpServer {
	
	public static void main(String[] args) throws Exception{
		byte[] buf = new byte[32];
		DatagramPacket p = new DatagramPacket(buf, 32);
		DatagramSocket socket = new DatagramSocket(4445);
		socket.receive(p);
		String string = new String(buf);
		System.out.println(string);
		
	}
	
}
